<?php if($menu == 0){ ?>
<div class="row"><div class="col-lg-2"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-10"><a style="cursor: pointer" onclick="getCategoryProduct(0, 0); getCategoryNews(0, '<?php echo $objAddParentCategoryList->id ?>');">Tất cả danh mục<?php echo $objAddParentCategoryList->name ?></a></div></div>
<?php } ?>
<?php if($menu == 1){ ?>
    <div class="row"><div class="col-lg-2"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-10"><a style="cursor: pointer" onclick="getCategoryProduct(1, 0); getCategoryNews(1, '<?php echo $objAddParentCategoryList->id ?>');">Tất cả danh mục<?php echo $objAddParentCategoryList->name ?></a></div></div>
<?php } ?>
<?php if($menu == 2){ ?>
    <div class="row"><div class="col-lg-2"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-10"><a style="cursor: pointer" onclick="getCategoryProduct(2, 0); getCategoryNews(2, '<?php echo $objAddParentCategoryList->id ?>');">Tất cả danh mục<?php echo $objAddParentCategoryList->name ?></a></div></div>
<?php } ?>
<?php if($menu == 3){ ?>
    <div class="row"><div class="col-lg-2"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-10"><a style="cursor: pointer" onclick="getCategoryProduct(3, 0); getCategoryNews(3, '<?php echo $objAddParentCategoryList->id ?>');">Tất cả danh mục<?php echo $objAddParentCategoryList->name ?></a></div></div>
<?php } ?>
<?php if($menu == 4){ ?>
    <div class="row"><div class="col-lg-2"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-10"><a style="cursor: pointer" onclick="getCategoryProduct(4, 0); getCategoryNews(4, '<?php echo $objAddParentCategoryList->id ?>');">Tất cả danh mục<?php echo $objAddParentCategoryList->name ?></a></div></div>
<?php } ?>
<?php if($menu == 5){ ?>
    <div class="row"><div class="col-lg-2"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-10"><a style="cursor: pointer" onclick="getSubCategory(0); getCategoryNews(5, '<?php echo $objAddParentCategoryList->id ?>');">Tất cả danh mục<?php echo $objAddParentCategoryList->name ?></a></div></div>
<?php } ?>
<?php foreach($info as $objAddParentCategoryList){ if($objAddParentCategoryList->id != 1){ ?>
    <?php if($menu == 0){ ?>
        <div class="row"><div class="col-lg-2"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-10"><a style="cursor: pointer" onclick="getCategoryProduct(0, '<?php echo $objAddParentCategoryList->id ?>'); getCategoryNews(0, '<?php echo $objAddParentCategoryList->id ?>');"><?php echo $objAddParentCategoryList->name ?></a></div></div>
    <?php } ?>
    <?php if($menu == 1){ ?>
        <div class="row"><div class="col-lg-2"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-10"><a style="cursor: pointer" onclick="getCategoryProduct(1, '<?php echo $objAddParentCategoryList->id ?>'); getCategoryNews(1, '<?php echo $objAddParentCategoryList->id ?>');"><?php echo $objAddParentCategoryList->name ?></a></div></div>
    <?php } ?>
    <?php if($menu == 2){ ?>
        <div class="row"><div class="col-lg-2"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-10"><a style="cursor: pointer" onclick="getCategoryProduct(2, '<?php echo $objAddParentCategoryList->id ?>'); getCategoryNews(2, '<?php echo $objAddParentCategoryList->id ?>');"><?php echo $objAddParentCategoryList->name ?></a></div></div>
    <?php } ?>
    <?php if($menu == 3){ ?>
        <div class="row"><div class="col-lg-2"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-10"><a style="cursor: pointer" onclick="getCategoryProduct(3, '<?php echo $objAddParentCategoryList->id ?>'); getCategoryNews(3, '<?php echo $objAddParentCategoryList->id ?>');"><?php echo $objAddParentCategoryList->name ?></a></div></div>
    <?php } ?>
    <?php if($menu == 4){ ?>
        <div class="row"><div class="col-lg-2"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-10"><a style="cursor: pointer" onclick="getCategoryProduct(4, '<?php echo $objAddParentCategoryList->id ?>'); getCategoryNews(4, '<?php echo $objAddParentCategoryList->id ?>');"><?php echo $objAddParentCategoryList->name ?></a></div></div>
    <?php } ?>
    <?php if($menu == 5){ ?>
        <div class="row"><div class="col-lg-2"><img class="img-responsive" src="<?php echo base_url()."assets/images/folder.png"; ?>"></div><div class="col-lg-10"><a style="cursor: pointer" onclick="getSubCategory('<?php echo $objAddParentCategoryList->id ?>'); getCategoryNews(5, '<?php echo $objAddParentCategoryList->id ?>');"><?php echo $objAddParentCategoryList->name ?></a></div></div>
    <?php } ?>
<?php } }  ?>
